lcPaint_PtbufAddArcSDAR Home

Adds a set of points into a points buffer. The points represent an arc shape, defined by Start, Direction angle, Arc angle, End.

 BOOL lcPaint_PtbufAddArcSDAR (
   HANDLE hPtbuf,
   double Xs,
   double Ys,
   double DirAngle,
   double ArcAngle,
   double Radius,
   int Resol
 );

Parameters
hPtbuf
  Handle to points buffer.
Xs Ys
  Arc start point coordinates.
DirAngle
  Arc direction angle from the start point.
ArcAngle
  Included angle of the arc.
Negative value means clockwise arc's direction from the start point, Positive value means counter-clockwise direction.
Radius
  Arc radius.
Resol
  Arc resolution. The value means a number of points per 360 degrees.
Can be only the following vales: 16, 32, 64, 128, 256, 512.
If the arc included angle is so low that result number of points is less then 5, then the function adds an extra points.

Return Value

  If the function succeeds, the return value is nonzero (TRUE).

Remarks

  To know the number of points was added by this function, read the global property LC_PROP_G_PTBUFNEWPTS just after the function execution.

See Also

  lcPaint_PtbufAddArclcPaint_PtbufAddArc3plcPaint_PtbufAddArcSDE